package edu.stu.book.book.keeping.utils

import android.content.Context
import androidx.annotation.ColorRes
import androidx.compose.ui.graphics.Color
import androidx.core.content.ContextCompat
import edu.stu.book.book.keeping.R

object ColorUtils {

    val main_color: Int = R.color.main_color

    fun getColor(context: Context, @ColorRes id: Int = main_color) = Color(
        ContextCompat.getColor(
            context,
            id
        )
    )
}